<?php
include APPPATH . "views/tamchau/inc/meta.php";
include APPPATH . "views/tamchau/inc/background.php";
include APPPATH . "views/tamchau/inc/head.php";
?>
<script type='text/javascript'>
    var active_menu = "<?php echo $menu_active ?>";
	
	$(document).ready(function(){
		$('.tab_setmenu').hide();
		$('.tab_setmenu.active').show();
		if($(".setmenu-detail").length>0){
			$(".setmenu-detail").niceScroll('.setmenu-detail>div',{
				cursor:'default',
				cursoropacitymax:0.8,
				cursoropacitymin:0.4,
				touchbehavior:true,
				cursorborder :'0',
				scrollspeed:100,
				bouncescroll:false,
				horizrailenabled:false,
				//autohidemode: false,
				cursorcolor:"#7F2286",
				cursorwidth :4,
				cursorborderradius :0
			});
		}
		$('#setmenu_tabs a').click(function (e) {
			e.preventDefault();
			var code = $(this).data('tabid');
			$('.tab_setmenu').hide();
			$('#tab_setmenu_'+code).show();
			$('.setmenu-detail').getNiceScroll().resize();
			loadSetMenu(code);
		});
		loadSetMenu($('#setmenu_tabs li.active a').data('tabid'));

	});
	function thucdonset(){
		loadSetMenu($('#setmenu_tabs li.active a').data('tabid'));
	}
	function thucdondaydu(){
		loadSetMenu('82dcf4e4e220034c7f4e3f2995ceb15d')
	}
</script>
<div id="tiec-cuoi-boxs" class="-main-container tiec-cuoi-boxs">
	<div class="front">
		<div class="wrapper">
			<div style="padding:40px">
				<h1><?php echo quotes_to_entities($nhahang_content->content_title) ?></h1>
				<div style="width:40px;height:1px;background:#636B38;margin:20px 0"></div>
				<div class="box cke_editable ">
					<link href="/libraries/ckeditor/contents.css" rel="stylesheet">
					<?php echo ($nhahang_content->content_content) ?>
				</div>
				<div style="border-top:1px solid #ccc;margin-top:20px;padding-bottom:20px"></div>
				<div class="cke_editable">
					<?php echo quotes_to_entities($setmenu_content->content_title) ?>
				</div>
				<div style="padding:28px 0 20px 1px">
				
					<ul id="setmenu_tabs" class="nav nav-tabs" -role="tablist">
						<?php 
						$f=0;
						foreach($setmenus as $tmp){ 
						?>
							<li class="<?php echo $f++==0?'active':''?>">
								<a href="#tab1" data-tabid="<?php echo ($tmp->album_code) ?>" role="tab" data-toggle="tab">
									<?php echo quotes_to_entities($tmp->album_title) ?>
								</a>
							</li>
						<?php } ?>
					</ul>
					<div class="clear"></div>
					<div class="tab-content">
						<div id="tab1"></div>
					</div>
				</div>
				<div class="box ">
					<?php 
					$f=0;
					foreach($setmenus as $tmp){ 
					?>
					<div class="tab_setmenu <?php echo $f++==0?'active':''?>" id="tab_setmenu_<?php echo ($tmp->album_code) ?>">
						<?php echo quotes_to_entities($tmp->album_content) ?>
							</div>
					<?php } ?>
				</div>

				<div style="padding-top:40px;font-size:12px">
					<ul class="nav nav-tabs" role="tablist">
						<li class="active visible-xs visible-sxs" style="width:50%">
							<a href="#tab1" data-tabid="" role="tab" data-toggle="tab" onclick="thucdonset()">
								Thực đơn set
							</a>
						</li>
						<li style="width:50%;font-size:12px">
							<a href="#tab2" data-tabid="" role="tab" data-toggle="tab" onclick="thucdondaydu()">
								Thực đơn đầy đủ
							</a>
						</li>
						<li class="hidden-xs hidden-sxs" style="width:50%;font-size:12px">
							<a href="#">
								Tải thực đơn đầy đủ
							</a>
						</li>
					</ul>
					<div class="clear"></div>
					
				</div>
			</div>
		</div>
	</div>
	<div class="setmenu-detail bg4">
		<div style="padding: 40px;color: rgb(255, 255, 255);">
			<div class="setmenu-content">
				<?php echo $fullsetmenu ?>
			</div>
		</div>
	</div>
</div>
<div id="set-menu-boxs" class="-main-container set-menu-boxs bg4">
	<div style="padding:40px;color:#fff;">
		<div class="setmenu-content">
			
		</div>
	</div>
</div>
<div class="clear"></div>
